import { createBrowserRouter } from "react-router-dom";
import Login from "../pages/Login";
import Seats from "../pages/Seats";
import ClassRooms from "../pages/ClassRooms/ClassRooms";
import ReserveResult from "../pages/ReserveResult/ReserveResult";
import AuthRoute from "../components/AuthRoute.jsx/AuthRoute";


export const router = createBrowserRouter([
    {
        path: "/",
        element: <Login />
    },
    {
        path: '/ClassRooms',
        element: <AuthRoute>
            <ClassRooms />
        </AuthRoute>
    },
    {
        path: "/Seats",
        element: <AuthRoute>
            <Seats />
        </AuthRoute>
    },
    {
        path: '/ReserveResult',
        element: <AuthRoute>
            <ReserveResult />
        </AuthRoute>
    }
])

export default router;
